
enum IMMessageSendTypeEnum {
  // 机器人
  ROBOT = 0,
  // 客服
  CUSTOMER_SERVICE = 1,
  // 客户
  CUSTOMER = 2,
  // 系统
  SYSTEM = 3
}

enum IMMessageTypeEnum {
  // 常规消息类型（老版）
  TXT_MESSAGE = "txt",
  
  // 自定义消息类型
  PRODUCT_MESSAGE = "product",
  IMAGE_CODE = "imageCode",
  ROBOT_MESSAGE = "robotMessage",
  SATISFACTION = "satisfaction",
  WIKI_SHARE = "wikiShare",
  TRANSFER_LABOR = "transferToLabor",
  INVITE_TOURIST_LOGIN = "inviteTouristLogin",
  SERVICE_MALL_GOODS = "serviceMallGoods",
  SERVICE_MALL_ORDER = "serviceMallOrder",
  CURRENT_QUEUE_POSITION_NOTIFY = "currentQueuePositionNotify",
  CUSTOMER_SERVICE_RECALL_MESSAGE = "customerServiceRecallMessage",
  RETAIN_CAPITAL = "retainCapital",
  SYSTEM_MESSAGE = "systemMessage",

  // 常规消息类型（新版：因为不想上传文件到环信）
  NEW_IMAGE_MESSAGE = "newImage",
  NEW_FILE_MESSAGE = "newFile",
  NEW_VIDEO_MESSAGE = "newVideo",
  NEW_VOICE_MESSAGE = "newVoice",
  PARAGRAPH_MESSAGE = "paragraph",

  EMAIL_MESSAGE = "email"
}

const IMMessageSendTypeCNNameEnum = {
  [IMMessageSendTypeEnum.ROBOT]: '机器人',
  [IMMessageSendTypeEnum.CUSTOMER_SERVICE]: '客服',
  [IMMessageSendTypeEnum.CUSTOMER]: '客户',
  [IMMessageSendTypeEnum.SYSTEM]: '系统',
}

// 用于获取消息类型的描述
const IMMessageTypeCNNameEnum = {
  [IMMessageTypeEnum.TXT_MESSAGE]: "文本",
  [IMMessageTypeEnum.PRODUCT_MESSAGE]: "产品",
  [IMMessageTypeEnum.IMAGE_CODE]: "图文",
  [IMMessageTypeEnum.ROBOT_MESSAGE]: "机器人自动回复消息",
  [IMMessageTypeEnum.SATISFACTION]: "请点击此处对本次服务进行评价",
  [IMMessageTypeEnum.WIKI_SHARE]: "知识库",
  [IMMessageTypeEnum.TRANSFER_LABOR]: "客服主动接管机器人会话",
  [IMMessageTypeEnum.INVITE_TOURIST_LOGIN]: "登录邀请",
  [IMMessageTypeEnum.SERVICE_MALL_GOODS]: "商品",
  [IMMessageTypeEnum.SERVICE_MALL_ORDER]: "订单",
  [IMMessageTypeEnum.CURRENT_QUEUE_POSITION_NOTIFY]: "排队会话的位次更新",
  [IMMessageTypeEnum.CUSTOMER_SERVICE_RECALL_MESSAGE]: "客服撤回消息",
  [IMMessageTypeEnum.RETAIN_CAPITAL]: "会话留资，跳转到指定页面",
  [IMMessageTypeEnum.SYSTEM_MESSAGE]: "系统消息",
  [IMMessageTypeEnum.NEW_IMAGE_MESSAGE]: "图片",
  [IMMessageTypeEnum.NEW_FILE_MESSAGE]: "文件",
  [IMMessageTypeEnum.NEW_VIDEO_MESSAGE]: "视频",
  [IMMessageTypeEnum.NEW_VOICE_MESSAGE]: "语音",
  [IMMessageTypeEnum.PARAGRAPH_MESSAGE]: "富文本",
  [IMMessageTypeEnum.EMAIL_MESSAGE]: "邮件"
};

export { 
  IMMessageSendTypeEnum, 
  IMMessageSendTypeCNNameEnum,
  IMMessageTypeEnum,
  IMMessageTypeCNNameEnum
}